const db = require('../db/index')

// 导入处理路径的 path 核心模块
const path = require('path')

// 添加购物车处理函数
exports.getGoodsCartList = (req, res) => {

    db.query('select * from goods_carts', req.params.id, (err, results) => {
        // if (err) return res.cc(err)


        res.send({
            status: 0,
            message: '查询购物车成功',
            data: results

        })

    })
}